import { getAction, postAction } from '@/api/manage'

// 调度日志列表
const list = (params) => getAction('/admin/taskLog/page', params)
// 删除调度日志
const del = (params) => postAction(`/admin/taskLog/delete/${params}`)
// 批量删除调度日志
const batchDel = (params) => postAction(`/admin/taskLog/batchDel`, params)
// 清空操作日志
const clear = () => postAction(`/admin/taskLog/clear`)
// 导出调度日志
const exports = (params) => postAction('/admin/taskLog/export', params, 'blob')

export {
  list,
  del,
  batchDel,
  clear,
  exports
}
